ActiveReports 10
Observe<T,TI>(T,Expression<Func<T,TI>>,Action<TI>,Action<TI>) Method

GrapeCity.ActiveReports.Viewer.Win.v10 Assembly > GrapeCity.Viewer.Common.Model Namespace > ActiveModelListenExtensions Class > Observe Method : Observe<T,TI>(T,Expression<Func<T,TI>>,Action<TI>,Action<TI>) Method
Action for old value
Action for new value
More sofisticated changes listener implementation
Syntax
'Declaration
 
Public Overloads Shared Function Observe
    (Of T As INotifyPropertyChanged,
     TI)( _
   ByVal obj As T, _
   ByVal getterExpr As Expression(Of Func(Of T,TI)), _
   ByVal leave As Action(Of TI), _
   ByVal enter As Action(Of TI) _
) As IDisposable
public static IDisposable Observe<T,TI>( 
   T obj,
   Expression<Func<T,TI>> getterExpr,
   Action<TI> leave,
   Action<TI> enter
)
where T: INotifyPropertyChanged

Parameters

obj
getterExpr
leave
Action for old value
enter
Action for new value

Type Parameters

T
TI
See Also

Reference

ActiveModelListenExtensions Class
ActiveModelListenExtensions Members
Overload List